<template>
	<view class="one-row-one-box">
		<block v-for="(item, index) in imageSrcList" :key="item">
			<view @click="previewImage">
				<image mode="widthFix" :src="item" />
			</view>
		</block>
	</view>
</template>

<script setup lang="ts">
	import { defineProps } from 'vue';
	const props = defineProps({
		imageSrcList: Array || []
	});

	// 预览
	const previewImage = () => {
		// 调用uni.previewImage预览图片  
		uni.previewImage({
			urls: props.imageSrcList
		})
	}
</script>

<style lang="scss" scoped>
	.one-row-one-box {
		width: 100%;
	}
</style>